package liangtWorkSpace.springTest.annotationS.action;

import liangtWorkSpace.springTest.annotationS.service.PersonService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * @author liangt
 * @ClassName: PersonAction
 * @title: PersonAction
 * @projectName liangtWorkSpace.springTest.annotationS.action
 * @description: TODO
 * @date 2020/10/13 17:37
 */
@Controller("personAction")
public class PersonAction {
    @Resource(name = "personService")
    private PersonService personService;

    public PersonService getPersonService() {
        return personService;
    }

    public void add(){
        personService.add();
        System.out.println("Action层方法执行完成");
    }
}
